package com.kayo.specimen.model;

import java.io.Serializable;
import java.util.Date;

public class User implements Serializable {
    private String id;
    private String name;
    private String code;
    private String password;
    private Date createTime;
    private Boolean isEnabled;
    private String email;

    @Override
    public boolean equals(Object o) {
        if(!(o instanceof User))
            return false;
        if (this.id .equals (((User)o).id))
            return true;

        return false;
    }
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public User(String name, String code, String password, Date createTime, Boolean isEnabled,String email) {
        this.name = name;
        this.code = code;
        this.password = password;
        this.createTime = createTime;
        this.isEnabled = isEnabled;
        this.email=email;
    }

    public User() {
    }

    @Override
    public String toString() {
        return "User{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", code='" + code + '\'' +
                ", password='" + password + '\'' +
                ", createTime=" + createTime +
                ", isEnabled=" + isEnabled +
                ", email='" + email + '\'' +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Boolean getEnabled() {
        return isEnabled;
    }

    public void setEnabled(Boolean enabled) {
        isEnabled = enabled;
    }
}
